package outofmemory;

import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.List;

/**
 * TODO
 *
 * @author zhanghongjiang
 * @version 1.0
 * @date 2021/9/11 22:11
 */
public class OutOfMemory {

    public static void main(String[] args) {
        add();
    }

    public static void  add(){
        List<Integer> list = new ArrayList<>();
        while(true){
            int a =1 ;
            list.add(a);
        }
    }
}
